//## 초를 시간으로 변환 
var GfnSec2Min = function (tm) {
		var hr = 0;
		var min = 0;
		var sec = 0;
		var restSec = 0;
		hr = Math.floor(tm / (60 * 60));
		restSec = tm - (hr*60*60);
		min = Math.floor(restSec/60);
		sec = restSec - (min*60);
		if (hr==0) hr ="";
		else if (hr<10) hr = "0"+hr+":";
		else hr = hr+":";
		if (min<10) min = "0"+min+":";
		else min = min+":";
		if (sec<10) sec = "0"+sec;

		return hr+min+sec;		
};

//## 시간을 초로 환산
var GfnGetTotalSec = function (tm)	{
	var divTm = tm.split(":");
	var totalSec = 0;
	if (divTm.length ==3)
	{
		totalSec = parseInt(divTm[0]) *60*60;
		totalSec += parseInt(divTm[1]) *60;
		totalSec += parseInt(divTm[2]);
	}
	if (divTm.length ==2)
	{
		totalSec = parseInt(divTm[0]) *60;
		totalSec += parseInt(divTm[1]);
	}
	if (divTm.length ==1)
	{
		totalSec = parseInt(divTm[0]);
	}
	return totalSec;
};